package JavaSE;

import java.util.Scanner;

public class studentGrade {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        if (scanner.hasNextInt()) {
            int score = scanner.nextInt();
            if (score >= 0 && score <= 100) {
                int ten = score / 10;
                String grade;
                switch (ten) {
                    case 10:
                    case 9:
                        grade = "A";
                        break;
                    case 8:
                        grade = "B";
                        break;
                    case 7:
                        grade = "C";
                        break;
                    case 6:
                        grade = "D";
                        break;
                    case 5:
                    case 4:
                    case 3:
                    case 2:
                    case 1:
                    case 0:
                        grade = "E";
                        break;
                    default:
                        grade = "error";
                        break;
                }
                switch (grade) {
                    case "A":
                        System.out.println("A:\"YX\"");
                        break;
                    case "B":
                        System.out.println("B:\"LH\"");
                        break;
                    case "C":
                        System.out.println("C:\"JH\"");
                        break;
                    case "D":
                        System.out.println("D:\"HG\"");
                        break;
                    case "E":
                        System.out.println("E:\"BHG\"");
                        break;
                }
            } else {
                System.out.println("error");
            }
        } else {
            System.out.println("error");
        }
    }
}
